﻿using System;
using System.ComponentModel;
using PetaPoco;
using PmSoft;
using PmSoft.Caching;

namespace Modules
{
    /// <summary>
    /// 各应用log4net错误日志
    ///</summary>
    [TableName("log4net_error")]
    [Description("错误日志表")]
    [PrimaryKey("Id", AutoIncrement = true)]
    [CacheSetting(true)]
    [Serializable]
    public class Log4netError:IEntity
    {
        /// <summary>
        ///  
        ///</summary>
         [Column("id"  )]
         public int Id { get; set; }
        /// <summary>
        /// 应用名称 
        ///</summary>
         [Column("app_name"  )]
         public string AppName { get; set; }
        /// <summary>
        /// 时间 
        ///</summary>
         [Column("date"  )]
         public DateTime? Date { get; set; }
        /// <summary>
        ///  
        ///</summary>
         [Column("logger"  )]
         public string Logger { get; set; }
        /// <summary>
        /// 日志消息 
        ///</summary>
         [Column("message"  )]
         public string Message { get; set; }

    #region IEntity 成员

        [Ignore]
        object IEntity.EntityId { get { return this.Id; } }

      #endregion

    }
}
